/*******************************************************************************
 * Copyright (c) 2010 Mikhail Garber.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License (LGPL)
 * which accompanies this distribution
 * 
 * Contributors:
 *     Mikhail Garber - initial API and implementation
 ******************************************************************************/
package plumber.flow;

import plumber.component.ComponentManager;
import plumber.model.Flow;

/**
 * Flow validator validates defined Flows and throws runtime exceptions if
 * there is a problem 
 *
 */
public interface FlowValidator {

	/**
	 * 
	 * @param flow - Flow to validate
	 * @param finder - where to find components
	 */
	public void validate(Flow flow, ComponentManager finder);
}
